package com.enjava.spring.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.annotations.Test;

import com.company.controllers.ControladorProductos;

public class AppSpringAOP {

	@Test
	public  void main() {
		ApplicationContext applicationContext=new ClassPathXmlApplicationContext("application.xml");
		ControladorProductos bean = applicationContext.getBean(ControladorProductos.class);
		System.out.println(bean.dameListaProductos());
		
	}

}
